package com.siwei.mes.common.JPush.config;

import lombok.Data;

/**
 * @author chenmaolin
 * @date: 2022/2/12 14:06
 */
@Data
public class PushMsgDto {

    /**
     * 用户id
     */
    private Long userId;

    /**
     * 客户id
     */
    private Long dataId;

    /**
     * 推送内容，  json字符串
     */
    private String content;

    /**
     * 对应操作
     */
    private String cmd;

    public PushMsgDto() {
    }

    public PushMsgDto(String cmd, String content) {
        this.cmd = cmd;
        this.content = content;
    }

    public PushMsgDto(Long userId, String cmd, String content) {
        this.userId = userId;
        this.cmd = cmd;
        this.content = content;
    }

    public PushMsgDto(Long userId, Long dataId, String cmd, String content) {
        this.userId = userId;
        this.dataId = dataId;
        this.cmd = cmd;
        this.content = content;
    }
}
